package com.xsd.command;

/**
 * @Description:
 * @Author: zhoufuzong
 * @Created: 2021-03-06 16:12:02
 * @Version: 1.1.0
 */

public class TVOffCommand implements Command {

    TVReceiver tvReceiver;

    public TVOffCommand(TVReceiver tvReceiver) {
        this.tvReceiver = tvReceiver;
    }

    @Override
    public void execute() {
        tvReceiver.off();
    }

    @Override
    public void undo() {
        tvReceiver.on();
    }
}
